package com.woniu.venue.client;


import com.woniu.model.Result;
import com.woniu.venue.client.model.AddVenueAdminForm;
import com.woniu.venue.client.model.CoachResume;
import com.woniu.venue.client.model.CoachResumeDto;
import com.woniu.venue.client.model.VenueAdminDto;
import com.woniu.venue.dto.coachEnter.CoachEnterDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "account-server", path = "/account")
public interface AccountClient {


    /**
     * 根据id查找教练信息
     *
     * @param id:教练id
     * @return 对象
     *
     */
    @GetMapping("/coachResume/getCoachResumeById/{id}")
    Result<CoachResumeDto> findCoachResumeById(@PathVariable("id") Integer id);

    @PostMapping("/venueAdmin/addVenueAdmin")
    Result<VenueAdminDto> addAdminAccount(@RequestBody AddVenueAdminForm form);

    @GetMapping("/coach/changeCoachState/{coachId}")
    Result changeCoachState(@PathVariable("coachId") Integer coachId);
}
